#include<bits/stdc++.h>
using namespace std;
signed main() {
//	system("start https://www.lanqiao.cn/problems/3758/learning/");

	int boundary, negBoundary;
	int endPoint, barrier, hammer;

	cin >> endPoint >> barrier >> hammer;

	boundary = max(endPoint, max(barrier, hammer));
	negBoundary = min(endPoint, min(barrier, hammer));

	int x = 0, flag = 0, endFlag = 0;

	while (1) {
		x++;
		if (x == hammer)	flag = 1;

		if (x == endPoint)	{
			cout << "Yes";
			return 0;
		}

		if (endFlag > 2) {
			cout << "No";
			return 0;
		}

		if ((x == barrier && !flag) || x > boundary) {

			if (x > boundary)	endFlag++;

			while (1) {
				x--;
				if (x == hammer)	flag = 1;
				if (x == endPoint)	{
					cout << "Yes";
					return 0;
				}

				if (x == barrier && !flag) {
					break;
				}

				if (x < negBoundary) {
					endFlag++;
					break;
				}
			}
		}
	}

	return 0;
}
